package com.hero.take.util;

import org.modelmapper.ModelMapper;
import org.modelmapper.convention.MatchingStrategies;

public class ModelMapperSingle {

    protected final static ModelMapper modelMapper = new ModelMapper();
    private  final static ModelMapperSingle modelMapperSingle = new ModelMapperSingle();
    static {
        modelMapper.getConfiguration().setFullTypeMatchingRequired(true);
        modelMapper.getConfiguration().setMatchingStrategy(MatchingStrategies.STRICT);
    }

    public static ModelMapper Instance(){
        return modelMapperSingle.modelMapper;
    }

}
